package com.wmyg.antifake.repository;

import com.wmyg.antifake.entity.BkUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author 王卓逸
 * @program TODO
 * @description TODO
 * @create 2019-05-18
 */
public interface BkUserRepository extends JpaRepository<BkUser, Integer> {

    BkUser findByPhone(String phone);

    BkUser findByUsername(String username);

    BkUser findByUserId(Integer userId);

    Page<BkUser> findByAuditStateOrderByRegTimeDesc(Integer  state, Pageable pageable);

}
